<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('督办查询列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div>
                <form id="formId">
                    <input type="hidden" name="tradeId" id="tradeId" th:value="${tradeId}" >
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-warning" onclick="alert('查看详情')">
                    <i class="fa fa-download"></i> 详情
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('er:paeaErError:edit')}]];
        var removeFlag = [[${@permission.hasPermi('er:paeaErError:remove')}]];
        var vchFlagDatas = [[${@dict.getType('sys_yes_no')}]];
        var errSourceDatas = [[${@dict.getType('err_source')}]];
        //var errStatusDatas = [[${@dict.getType('err_status')}]];
        var correctFlagDatas = [[${@dict.getType('correct_flag')}]];
        var correctOvertimeDatas = [[${@dict.getType('sys_yes_no')}]];
        var replyFlagDatas = [[${@dict.getType('reply_flag')}]];
        var prefix = ctx + "oms/paeaAuAuditItem";

        $(function() {
            var options = {
                url: prefix + "/registerErrorTable",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "督办查询",
                //启用跳转至指定页
                showPageGo: true,
                //启用点击选中行
                clickToSelect: true,
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id',
                    title : '主键',
                    visible: false
                },
                {
                    field : 'code',
                    title : '督办编号'
                },
                {
                    field : 'name',
                    title : '督办名称',
                    visible: false
                },
                {
                    field : 'description',
                    title : '差错描述',
                    visible: false
                },
                {
                    field : 'trDate',
                    title : '交易日期'
                },
                {
                    field : 'orgId',
                    title : '机构号'
                },
                {
                    field : 'orgName',
                    title : '机构名称',
                    visible: false
                },
                {
                    field : 'tellerId',
                    title : '柜员号'
                },
                {
                    field : 'tellerName',
                    title : '柜员姓名',
                    visible: false
                },
                {
                    field : 'vchNo',
                    title : '交易流水'
                },
                {
                    field : 'vchFlag',
                    title : '流水标志',
                    visible: false,
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(vchFlagDatas, value);
                    }
                },
                {
                    field : 'auTypeId',
                    title : '监控项编号',
                    visible: false
                },
                {
                    field : 'auTypeName',
                    title : '监控项名称',
                    visible: false
                },
                {
                    field : 'auditOrg',
                    title : '监督中心',
                    visible: false
                },
                {
                    field : 'title',
                    title : '标题',
                    visible: false
                },
                {
                    field : 'errTitle',
                    title : '督办标题',
                    visible: false
                },
                {
                    field : 'notifyDate',
                    title : '下发日期'
                },
                {
                    field : 'notifyNum',
                    title : '下发次数',
                    visible: false
                },
                {
                    field : 'auditProceeding',
                    title : '监督事项',
                    visible: false
                },
                {
                    field : 'auditSuggest',
                    title : '整改建议',
                    visible: false
                },
                {
                    field : 'curRoleId',
                    title : '当前角色',
                    visible: false
                },
                {
                    field : 'errRegOper',
                    title : '创建人'
                },
                {
                    field : 'errSource',
                    title : '督办类型',
                    visible: false,
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(errSourceDatas, value);
                    }
                },
                {
                    field : 'errTypeId',
                    title : '差错类型',
                    visible: false
                },
                {
                    field : 'errGrade',
                    title : '差错等级',
                    visible: false
                },
                {
                    field : 'errState',
                    title : '状态'
                },
                {
                    field : 'errAuditor',
                    title : '产生差错监督员',
                    visible: false
                },
                {
                    field : 'correctLimitDate',
                    title : '整改期限',
                    visible: false
                },
                {
                    field : 'correctDate',
                    title : '整改日期',
                    visible: false
                },
                {
                    field : 'correctVchNo',
                    title : '整改交易流水号',
                    visible: false
                },
                {
                    field : 'correctOper',
                    title : '整改人',
                    visible: false
                },
                {
                    field : 'correctFlag',
                    title : '整改标志',
                    visible: false,
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(correctFlagDatas, value);
                    }
                },
                {
                    field : 'correctOvertime',
                    title : '是否超期',
                    visible: false,
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(correctOvertimeDatas, value);
                    }
                },
                {
                    field : 'responsibleOper',
                    title : '负责人',
                    visible: false
                },
                {
                    field : 'replyDate',
                    title : '回复日期',
                    visible: false
                },
                {
                    field : 'replyOper',
                    title : '回复人',
                    visible: false
                },
                {
                    field : 'replyFlag',
                    title : '回复标志',
                    visible: false,
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(replyFlagDatas, value);
                    }
                },
                {
                    field : 'replyContent',
                    title : '回复内容',
                    visible: false
                },
                {
                    field : 'replyComments',
                    title : '回复意见',
                    visible: false
                },
                {
                    field : 'initRespOper',
                    title : '初始负责人',
                    visible: false
                },
                {
                    field : 'handoverOper',
                    title : '接收人',
                    visible: false
                },
                {
                    field : 'opFlag',
                    title : '处理标志',
                    visible: false
                },
                {
                    field : 'acquiredTime',
                    title : '获取时间',
                    visible: false
                },
                {
                    field : 'acquiredStatus',
                    title : '获取状态',
                    visible: false
                },
                {
                    field : 'times',
                    title : '督办次数',
                    visible: false
                },
                {
                    field : 'exclusiveOper',
                    title : '排除人',
                    visible: false
                },
                {
                    field : 'reviewId',
                    title : '复核员ID',
                    visible: false
                },
                {
                    field : 'reviewName',
                    title : '复核员姓名',
                    visible: false
                },
                {
                    field : 'authId',
                    title : '授权人ID',
                    visible: false
                },
                {
                    field : 'authName',
                    title : '授权人姓名',
                    visible: false
                },
                {
                    field : 'reason',
                    title : '差错原因',
                    visible: false
                },
                {
                    field : 'reasonCode',
                    title : '原因编码',
                    visible: false
                },
                {
                    field : 'reasonFlag',
                    title : '原因标志未用',
                    visible: false
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>